package newsDemo.mapper;

import newsDemo.pojo.news;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface newsMapper {
    public news getNewsById(int id);

    public List<news> getNewsByTag(int tag);

    public void update(news news);
}
